<?php

/**
 * @file block.inc
 * Defines all the custom blocks' information.
 */

/**
 * A listing of blocks and their Administrative info title.
 *
 * @return array $blocks
 *   An array of block definitions.
 */
function jainarts_blocks_block_get_info() {

  $pages = array('paintings', 'sculpture', 'architecture', 'symbolism', 'deities', 'cosmology', 'maps', 'resources', 'artobject', 'frontpage', 'default');
  $sections = array('top wide', 'top left', 'top right', 'middle wide', 'middle left', 'middle right', 'bottom left', 'bottom right', 'bottom wide');

  foreach($pages as $page) {
    foreach($sections as $section) {
      $blocks[$page . '_' . str_replace(' ', '_', $section)] = array(
        'info' => t($page . ': content ' . $section),
      );
    }
  }

  return $blocks;
}
